
public class T_Banque_N1
{
	
	public static void main (String[] args) throws Exception 
 	 {
	     Tests.Begin("_Maths.Cellule", "0.0.0");
	
	    	 Tests.Design("Controle du constructeur ", 3);
	         {
	        	 Tests.Case("test du constructeur");
	        	 {
	        		Banque b1 = new Banque();
	        		Banque b2 = new Banque();
	        		 Tests.Unit("{the=12, jade=9, orge=15, or=6, sel=18}", b1.toString());
	        		 Tests.Unit("{the=12, jade=9, orge=15, or=6, sel=18}", b2.toString());
	        	 }
	        	 Tests.Case("test des accesseurs");
	        	 {
	        		Banque b1 = new Banque();
	        		  	 
	        		Tests.Unit(18, b1.getSel());
	         		Tests.Unit(15, b1.getOrge());
	         		Tests.Unit(12, b1.getThe());
	         		Tests.Unit(9, b1.getJade());
	         		Tests.Unit(6, b1.getOr()); 			 
	        	 }
	        	 Tests.Case("test de viderRessource");
	        	 {  
	        		 Banque b1 = new Banque();
	        		   	
	        		   	b1.viderRessource(Ressource.sel);
	        		   	b1.viderRessource(Ressource.sel);
	        		   	b1.viderRessource(Ressource.orge);
	        		   	b1.viderRessource(Ressource.the);
	        		   	b1.viderRessource(Ressource.jade);
	        		   	b1.viderRessource(Ressource.or);
	        		   		 
	        			Tests.Unit(16, b1.getSel());
						Tests.Unit(14, b1.getOrge());
	        			Tests.Unit(11, b1.getThe());
	        			Tests.Unit(8, b1.getJade());
	        			Tests.Unit(5, b1.getOr());
	        	}
	        	Tests.Case("test de remplirRessource");
	        	{
	        		
	        		Banque b1 = new Banque();
	        		
	        		b1.remplirRessource(Ressource.sel);
        		   	b1.remplirRessource(Ressource.sel);
        		   	b1.remplirRessource(Ressource.orge);
        		   	b1.remplirRessource(Ressource.the);
        		   	b1.remplirRessource(Ressource.jade);
        		   	b1.remplirRessource(Ressource.or);
        		   		 
        			Tests.Unit(20, b1.getSel());
					Tests.Unit(16, b1.getOrge());
        			Tests.Unit(13, b1.getThe());
        			Tests.Unit(10, b1.getJade());
        			Tests.Unit(7, b1.getOr());
	        		
	        	}
	        	Tests.Case("test de viderCommande");
	        	{
	        		Banque b1 = new Banque();
	        		Commande commandeP = new Commande();
	        		
	        		b1.viderCommande(commandeP);
	        		Tests.Unit("", b1.toString());
	        	}
	        	Tests.Case("test de ajoutCommande");
	        	{
	        		Banque b1 = new Banque();
	        		Commande commandeP = new Commande();
	        		
	        		b1.ajoutCommande(commandeP);
	        		Tests.Unit("", b1.toString());
	        	}
	        	Tests.Case("test de equals");
	        	{
	        	Banque b1 = new Banque();
	        	Banque b2 = new Banque();
	        	
	        	Tests.Unit(true, b1.equals(b2));
	        		
	        	}
	         }	 
	        	  
	        Tests.End();
	 	   
   } 

}
